package com.jiesen.resource.modules.uploadFile.pojo;

import com.jiesen.resource.modules.uploadFile.model.FileAttributes;
import lombok.Data;

@Data
public class FIleAttributesFrom {
    //上传完成返回内容
    private Integer id;

    //key
    private String key;

    //所属文件夹
    private Integer folderId;

    //文件名称
    private String name;

    //地址
    private String url;

    public FIleAttributesFrom(FileAttributes fileAttributes) {
        this.name = fileAttributes.getName();
        this.folderId = fileAttributes.getFolderId();
        this.id = fileAttributes.getId();
        this.key = fileAttributes.getServerName();
        this.url = fileAttributes.getUrl();
    }

    public FIleAttributesFrom(){

    }
}
